package com.saunter.controller;

import com.saunter.service.CompanyService;
import com.saunter.utils.exception.ExceptionManager;
import com.saunter.utils.response.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@Api(tags = {"公司配置信息"})
@RestController
@RequestMapping("/company")
public class CompanyController {
    @Autowired
    private CompanyService companyService;
    @Resource
    private ExceptionManager exceptionManager;

    @ApiOperation("获取公司配置信息")
    @GetMapping("/getInfo")
    public Map<String, Object> getCompany() {
        return Response.success(companyService.getInfo());
    }
}
